<template>
  <div class="home">
    <h1>首页内容</h1>
    <!-- 绑定 @click 事件 -->
    <el-button type="primary" @click="handleClick">Element Plus 按钮</el-button>
  </div>
</template>

<script setup>

const handleClick = () => {
  alert('按钮被点击了！');
};
</script>

<style scoped>
.home {
  padding: 20px;
}
</style>